public class HomeWork13_04{
    public static void main(String[] args){
        PeopleInfo pi = new PeopleInfo();
        
        String info = "胡钢-20-男-河南省";
        pi.parseInfo(info);
    }
}

class PeopleInfo{
    public void parseInfo(String info){
        String[] str = info.split("-");
        System.out.println("name: " + str[0] + "\n" + 
                           "age: " + str[1] + "\n" +
                           "sex: " + str[2] + "\n" +
                           "address: " + str[3]);
    }
}